package com.imooc.filter;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * 要排除的请求路径资源类
 * @author liansen
 * @create 01-14-18:04
 */
@Data
@Component
@PropertySource("classpath:excludeUrlPath.properties")
@ConfigurationProperties(prefix = "exclude")
public class ExcludeUrlProperties {

    //不需要拦截的路径
    private List<String> urls;

    //黑名单网关限流需要拦截的路径
    private List<String> ipLimitUrls;
}
